﻿using Himp.Outpatient;
using Microsoft.Extensions.DependencyInjection;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Volo.Abp.Application.Dtos;
using Volo.Abp.DependencyInjection;

namespace Himp.Platform
{
    public class OtpSettingQuery : ISingletonDependency
    {
        private readonly IServiceProvider _serviceProvider;

        public OtpSettingQuery(IServiceProvider serviceProvider)
        {
            _serviceProvider = serviceProvider;
        }

        public async Task<PagedResultDto<OtpSetlTypeDto>> GetOtpRgstTypeListAsync(OtpSetlTypeInput input)
        {
            var otpSetlTypeService = _serviceProvider.GetService<IOtpSetlTypeService>();

            return await otpSetlTypeService.GetListAsync(input);
        }

        public async Task<PagedResultDto<OtpOperRmDto>> GetOtpOperRmListAsync(OtpOperRmInput input)
        {
            var otpOperRmService = _serviceProvider.GetService<IOtpOperRmService>();

            return await otpOperRmService.GetListAsync(input);
        }
    }
}
